package enums.learn;

import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
import com.nsl.my_youlai.Jackson.Leader;

import java.io.IOException;

public class LongDeserializer extends StdDeserializer<Long> {
    public LongDeserializer() {
        this(null);
    }

    protected LongDeserializer(Class<Long> vc) {
        super(vc);
    }

    @Override
    public Long deserialize(JsonParser p, DeserializationContext ctxt) throws IOException, JsonProcessingException {
//        String leaderName = p.getValueAsString();
//        if (leaderName == null) {
//            return null;
//        }
        return 1L;
    }


}

